package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.ProductLine;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Hull
 * @date 2017/9/28
 */
public interface ProductLineRepository extends JpaRepository<ProductLine, Long> {
    @Override
    ProductLine save(ProductLine productLine);
    ProductLine findByName(String name);
    Page<ProductLine> findByNameContaining(String name, Pageable pageable);
    @Override
    Page<ProductLine> findAll(Pageable pageable);
}
